package lab6_Strategy_sortari;


public class Context {
	public static void main(String[] args) {
		String v[] = {"karla","ana", "ileana", "maria", "bianca", "larisa"};
		BubbleSortStrategy b=new BubbleSortStrategy();
		QuickSortStrategy q=new QuickSortStrategy();
		SortStrategy s=new SortStrategy();
		
		System.out.println("Vectorul este ");
		for(int i=0; i<v.length; i++)
			System.out.print(v[i]+ " " );
	
		System.out.println("\n Sortare BubbleSort ");
		b.sort(v);
		for(int i=0; i<v.length; i++)
			System.out.print(v[i]+ " " );
		
		
		System.out.println("\n Sortare QuickSort ");
		q.sort(v);
		for(int i=0; i<v.length; i++)
			System.out.print(v[i]+ " " );;
		
		//Sortarea clasica
		System.out.println("\n Sortarea clasica ");
		s.sort(v);
		for(int i=0; i<v.length; i++)
			System.out.print(v[i]+ " " );
	}
}
